<%@page import="java.util.ArrayList"%>
<%@page import="com.jlrdb.model.DigitalRadioBroadcast"%>
<%@page import="com.jlrdb.model.DigitalRadioBroadcasts"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>View Radio Broadcasts</title>
<script type="text/javascript" src="/script/pagination.js"></script>
<link rel="stylesheet" type="text/css" href="/css/pagination.css">
</head>
<body>
	<%
		DigitalRadioBroadcasts digitalRadioBroadcasts = (DigitalRadioBroadcasts) request
			.getAttribute("digitalRadioBroadcasts");
			String geography = (String)request.getAttribute("geography");
	%>
	<P>
		Geographic Region: <font color="blue"><%=geography%></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="red">click on the country to view details</font>
	</p>
	<h3>Digital Radio Data</h3>
	<%
		if(digitalRadioBroadcasts.getDigitalRadioBroadcasts().size()!=0)
		{
	%>
	<table border=1 id="tablepaging" class="yui">
		<thead>
			<tr>
				<th><div style="width: 150px">Country</div></th>
				<th><div style="width: 150px">Analog Radio</div></th>
				<th><div style="width: 150px">Digitization Status</div></th>
				<th><div style="width: 150px">Digital Radio Family</div></th>
				<th><div style="width: 150px">Transmission Status</div></th>
				<th><div style="width: 150px">Standard</div></th>
				<th><div style="width: 150px">Coverage</div></th>
				<th><div style="width: 150px">Frequency Spectrum</div></th>
				<!-- 				<th><div style="width: 150px">Major Players</div></th> -->
				<!-- 				<th><div style="width: 150px">Digital Radio Overall	coverage</div></th> -->
				<!-- 				<th><div style="width: 150px">MultiPlex</div></th> -->
				<!-- 				<th><div style="width: 150px">ASO Start Date</div></th> -->
				<!-- 				<th><div style="width: 150px">ASO End Date</div></th> -->
				<!-- 				<th><div style="width: 150px">Regulatory authority</div></th> -->
				<!-- 				<th><div style="width: 150px">Notes</div></th> -->
				<!-- 				<th><div style="width: 150px">Source</div></th> -->
				<!-- 				<th><div style="width: 150px">Status Confirmed</div></th> -->
				<!-- 				<th><div style="width: 150px">Last Update Date</div></th> -->
			</tr>
		</thead>
		<%
			for (DigitalRadioBroadcast brd : digitalRadioBroadcasts.getDigitalRadioBroadcasts()) {
		%>
		<tbody>
			<tr class="even">
				<td><a href="/RadioBroadcastServlet?action=viewRadioBroadcasts&&country=<%=brd.getCountry()%>&&geographic_region=<%=brd.getGeographic_Region()%>" target="_blank"><%=brd.getCountry()%></a></td>
				<td><%=brd.getAnalog_radio()%></td>
				<td><%=brd.getDigitization_Status()%></td>
				<td><%=brd.getDigital_Radio_Family()%></td>
				<td><%=brd.getTransmission_Status()%></td>
				<td><%=brd.getStandard()%></td>
				<td><%=brd.getCoverage()%></td>
				<td><%=brd.getFrequency_Spectrum()%></td>
				<%-- 				<td><%=brd.getMajor_Players()%></td> --%>
				<%-- 				<td><%=brd.getDigital_Radio_Overall_coverage()%></td> --%>
				<%-- 				<td><%=brd.getMultiPlex()%></td> --%>
				<%-- 				<td><%=brd.getASO_Start_Date()%></td> --%>
				<%-- 				<td><%=brd.getASO_End_Date()%></td> --%>
				<%-- 				<td><%=brd.getRegulatory_authority()%></td> --%>
				<%-- 				<td><%=brd.getNotes()%></td> --%>
				<%-- 				<td><%=brd.getSource()%></td> --%>
				<%-- 				<td><%=brd.getStatus_Confirmed_()%></td> --%>
				<%-- 				<td><%=brd.getLast_Update_Date()%></td> --%>
			</tr>
		</tbody>
		<%
			}
		%>
	</table>
	<div id="pageNavPosition" style="padding-top: 20px" align="center"></div>
	<script type="text/javascript">
		var pager = new Pager('tablepaging', 18);
		pager.init();
		pager.showPageNav('pager', 'pageNavPosition');
		pager.showPage(1);
	</script>
	<%
		} else
		{
	%>
	<p>
		No Digital Radio data Available for
		<%=geography%></p>
	<%
		}
	%>
</body>
</html>